﻿using BIS.Utility.DAL.DataMapper;
using BIS.Utility.Converter;

namespace BIS.Portal.Modules.CMS.Entity
{
    public class ClientCmsArticleFreeMediaEntity : IEntity
    {

        #region Private member

        private string _media_thumbnails;
        private string _media_src;

        #endregion
        #region Contructor

        public ClientCmsArticleFreeMediaEntity()
        {
        }

        public ClientCmsArticleFreeMediaEntity(string mediaThumbnails, string mediaSrc)
        {
            _media_thumbnails = mediaThumbnails;
            _media_src = mediaSrc;
        }

        #endregion
        #region Pulbic properties

        public string MediaThumbnails
        {
            get { return _media_thumbnails; }
            set { _media_thumbnails = value; }
        }

        public string MediaSrc
        {
            get { return _media_src; }
            set { _media_src = value; }
        }

        #endregion

        #region Implement From IEntity Member

        public void Fill(System.Data.IDataReader reader)
        {
            MediaThumbnails = Functions.GetString(reader["media_thumbnails"]);
            MediaSrc = Functions.GetString(reader["media_src"]);
        }
        #endregion

    }
}
